# -*- coding: utf-8 -*-

g_bom = [{
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "1bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "2bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "3bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "4bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "5bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "666666rbcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "7bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "8bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "9bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "10bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "11bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "12bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "13bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "14bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "16bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "15bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "17bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "18bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "19bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "20bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "21bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    {
    "pnum": 3,
    "num": 3,
    "PrivateDescSeg1": "abcddd999dwd",
    "item_part_no": "22bcddd999dwd",
    "BOMComponent_name": "这是一个BOM就是传说中的物料",
    "BOMComponent_picturecode": "pppdddaaeeddss",
    "ID": "pppdddaaeeddss",
    "BOMComponent_PrivateDescSeg5": "pppdddaaeeddss",
    "BOMComponent_SPECS": "pppdddaaeeddss",
    "BOMComponent_ItemVersion": "4",
    "bom_freeze": False,
    "bom_tb": False,
    "replacement": "dddi9jjjksseess",
    "gs": "gsaaabbcc",
    "rpm": "aaabbb",
    "rpp": "aaabbb",
    "rps": "aaabbb",
    "rpg": "ddddiiii"
    },
    ]


def get_bom(m, c):
    cmd = {}

    for m in range(c):
        wsn = "M%s" % (m + c)
        cmd[wsn] = g_bom
    return cmd
